package com.szh.cloud.user.entity;

import java.io.Serializable;

public class SearchUserEntity implements Serializable {
    private String userName;
    private String niceName;
    private String email;
    private String mobile;

    private String[] userNameArray;

    private String[] niceNameArray;
    private String[] emailArray;
    private String[] mobileArray;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNiceName() {
        return niceName;
    }

    public void setNiceName(String niceName) {
        this.niceName = niceName;
    }

    public void deal(){
        if(this.userName != null){
            this.userNameArray = userName.split(",");
        }
        if(this.niceName != null){
            this.niceNameArray = niceName.split(",");
        }
        if(this.email != null){
            this.emailArray  = this.email.split(",");
        }
        if(this.mobile != null){
            this.mobileArray = this.mobile.split(",");
        }

    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }


    public String[] getUserNameArray() {
        return userNameArray;
    }

    public void setUserNameArray(String[] userNameArray) {
        this.userNameArray = userNameArray;
    }

    public String[] getNiceNameArray() {
        return niceNameArray;
    }

    public void setNiceNameArray(String[] niceNameArray) {
        this.niceNameArray = niceNameArray;
    }

    public String[] getEmailArray() {
        return emailArray;
    }

    public void setEmailArray(String[] emailArray) {
        this.emailArray = emailArray;
    }

    public String[] getMobileArray() {
        return mobileArray;
    }

    public void setMobileArray(String[] mobileArray) {
        this.mobileArray = mobileArray;
    }

    @Override
    public String toString() {
        return "SearchUserEntity{" +
                "userName='" + userName + '\'' +
                ", niceName='" + niceName + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                '}';
    }
}
